package prototype;

public class Agent {

	private boolean moving;

	public Agent() {
		moving = false;
	}

	public void stop() {
//		if (moving == true)
//			System.out.print("agent now stopped.");
		moving = false;
		ForwardBehaviour.unrelease();
	}

	public void forward() {
//		if (moving == false)
//			System.out.print("agent now moving.");
		moving = true;
		StopBehaviour.unrelease();
	}

	public String isMoving() {
		return (moving == true) ? "moving" : "stopped";
	}

	public boolean moving() {
		return moving;
	}
}
